//
//  MMDrawerSegue.m
//  iBaby365v2
//
//  Created by Kirinrin on 14-6-28.
//  Copyright (c) 2014年 suplus. All rights reserved.
//

#import "MenuSegue.h"
#import "MenuViewController.h"
#import <UIViewController+MMDrawerController.h>

@implementation MenuSegue

- (void)perform {
    
    // 触发Segue的ViewController
    UIViewController * srcViewController = (UIViewController *)self.sourceViewController;
    // 目标Segue的ViewController
    UIViewController * destViewController = (UIViewController *)self.destinationViewController;
    // 为两个View的切换设置动画效果
//    [UIView transitionFromView:svc.view toView:dvc.view duration:0.5 options:UIViewAnimationOptionTransitionNone completion:nil];
    
    [srcViewController.mm_drawerController setCenterViewController:destViewController withCloseAnimation:YES completion:nil];
}

@end
